package com.wanmait.happyheating.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* Created by Mybatis Generator 2021/05/10
*/
@Data
@TableName(value = "materials_price")
public class MaterialsPrice implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联的耗材
     */
    @TableField(value = "materials_name_id")
    private Integer materialsNameId;
    @TableField(exist = false)
    private MaterialsName  materialsName;

    /**
     * 录入时间
     */
    @TableField(value = "input_time")
    private Timestamp inputTime;

    /**
     * 价格A
     */
    @TableField(value = "price")
    private Integer price;

    private static final long serialVersionUID = 1L;

    public static final String COL_MATERIALS_NAME_ID = "materials_name_id";

    public static final String COL_INPUT_TIME = "input_time";

    public static final String COL_PRICE = "price";
}